Class LoopbackManagerImpl

All Implemented Interfaces:
IPCObject, LoopbackManager, Process

public class LoopbackManagerImpl extends ProcessImpl implements LoopbackManager
Information provided by the PKI file:

    \class LoopbackManager
    
    \brief LoopbackManager is the process that manages loopback interfaces.
    
    \example network().getDevice("Router0").getProcess("LoopbackManager")
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getLoopback

      public RouterPort getLoopback(int loopbackNumber)
      Information provided by the PKI file:
      
          \brief Returns the loopback interface at the specified loopback interface number.
          
          \param loopbackNumber, the loopback interface number of interest.
          
          \return RouterPort, the RouterPort object at the specified loopback interface number.
          
              
      Specified by:
      getLoopback in interface LoopbackManager
      Parameters:
      loopbackNumber - Takes in a parameter of loopbackNumber
      Returns:
      RouterPort Returns a RouterPort
    • getLoopbackAt

      public RouterPort getLoopbackAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the loopback interface at the specified index.
          
          \param index, the index of the loopback interface of interest.
          
          \return RouterPort, the RouterPort object at the specified index.
          
              
      Specified by:
      getLoopbackAt in interface LoopbackManager
      Parameters:
      index - Takes in a parameter of index
      Returns:
      RouterPort Returns a RouterPort
    • addLoopback

      public boolean addLoopback(int loopbackNumber)
      Information provided by the PKI file:
      
          \brief Adds a loopback interface with the specified loopback interface number.
          
          \param loopbackNumber, the loopback interface number.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      addLoopback in interface LoopbackManager
      Parameters:
      loopbackNumber - Takes in a parameter of loopbackNumber
      Returns:
      boolean Returns a boolean
    • removeLoopback

      public boolean removeLoopback(int loopbackNumber)
      Information provided by the PKI file:
      
          \brief Removes the loopback interface with the specified loopback interface number.
          
          \param loopbackNumber, the loopback interface number of interest.
          
          \return bool, true if successful, otherwise false.
          
              
      Specified by:
      removeLoopback in interface LoopbackManager
      Parameters:
      loopbackNumber - Takes in a parameter of loopbackNumber
      Returns:
      boolean Returns a boolean
    • getLoopbackCount

      public int getLoopbackCount()
      Information provided by the PKI file:
      
          \brief Returns the number of loopback interfaces.
          
          \return int, the number of loopback interfaces.
          
              
      Specified by:
      getLoopbackCount in interface LoopbackManager
      Returns:
      int Returns a int